<?php
/**
 * @file
 */

/**
 * Menu callbacks
 */
function nodejschat_client_settings($form, &$form_state) {
  $form['nodejschat_client_enable'] = array(
    '#type' => 'checkbox',
    '#title' => t('Client enable'),
    '#description' => t('Enable chat for client'),
    '#default_value' => variable_get('nodejschat_client_enable', FALSE),
  );
  $form['nodejschat_client_delete'] = array(
    '#type' => 'checkbox',
    '#title' => t('Delete client info when nodejschat has been deleted'),
    '#default_value' => variable_get('nodejschat_client_delete', FALSE),
  );
  $form['nodejschat_client_width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
    '#default_value' => variable_get('nodejschat_client_width', 500),
    '#required' => TRUE
  );
  $form['nodejschat_client_height'] = array(
    '#type' => 'textfield',
    '#title' => t('Height'),
    '#default_value' => variable_get('nodejschat_client_height', 400),
    '#required' => TRUE
  );
  return system_settings_form($form);
}